import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询设备实时监测数据全部
export const alarmRealHistoryList = data => {
    return $get('/alarm/alarmRealHistory/list', data)
}

// 查询设备实时监测数据列表
export const alarmRealHistoryPage = data => {
    return $get('/alarm/alarmRealHistory/page', data)
}

// 新增设备实时监测数据
export const alarmRealHistoryAdd = data => {
    return $post('/alarm/alarmRealHistory/add', data)
}

// 查询设备实时监测数据详情
export const alarmRealHistoryDetail = id => {
    return $get('/alarm/alarmRealHistory/detail/'+ id)
}

// 更新设备实时监测数据
export const alarmRealHistoryUpdate = data => {
    return $post('/alarm/alarmRealHistory/update', data)
}

// 删除设备实时监测数据
export const alarmRealHistoryDelete = id => {
    return $post('/alarm/alarmRealHistory/delete/'+ id)
}

// 导出设备实时监测数据
export const alarmRealHistoryExport = (data,fileName) => {
    return $download('/alarm/alarmRealHistory/export',data, fileName)
}
